﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;

namespace BUS
{
    public class RoomRequestBUS
    {
        RoomRequestDAO roomRequestDAO = new RoomRequestDAO();

        public RoomRequest GetRoomRequest(int userId)
        {
            return roomRequestDAO.GetRoomRequest(userId);
        }

        public bool AddRoomRequest(int userId, string friendName, int roomId)
        {
            return roomRequestDAO.AddRoomRequest(userId, friendName, roomId);
        }

        public bool DeleteRoomRequest(int userId, int roomId)
        {
            return roomRequestDAO.DeleteRoomRequest(userId, roomId);
        }
    }
}
